<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<style>
html{ overflow:hidden;}
body{margin:0;padding:0}
</style>

<script type="text/javascript">

var Tjj = new Object();
M_ID = 0;
Tjj.write = function(did,mids,width,height,ad){
    var mCount = mids.length;
    if(mCount>1){
        m = Math.random();
        m = Math.round(m*(mCount-1));
    }
    else{
        m = 0;
    }
    if(m>=mCount){
        m = m-1;
    }
    M_ID = mids[m];
    adSlecet = ad[mids[m]];
    var htmlContent = Tjj.makeContent(adSlecet);
    document.write(htmlContent);
}
Tjj.txttemplate = '<a href="{url}" target="_blank">{title}</a>';
Tjj.swftemplate = '<a target="_blank" href="{url}" style="position:absolute;top:0;left:0;bottom:0;right:0;display:block;width:100%;height:expression(this.parentNode.scrollHeight);filter:alpha(opacity=0);opacity:0;background:#FFF;"></a>' 
                 +'<object align="middle" width="{width}" height="{height}" id="flaPreview" '
                 +'codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" '
                 +'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">'
                 +'<param value="transparent" name="wmode">'
                 +'<param value="{link}" name="movie">'
                 +'<embed align="middle" width="{width}" height="{height}" pluginspage="http://www.macromedia.com/go/getflashplayer" '
                 +'type="application/x-shockwave-flash" name="flaPreview" src="{link}" wmode="transparent">'
                 +'</object>';               
Tjj.pictemplate = '<a href="{url}" target="_blank"><img src="{link}" style="border: 0pt none;" width="{width}" height="{height}"/></a>';
Tjj.htmltemplate = '{code}';

Tjj.makeContent = function(ad){
    var tem = '';
    switch(ad['type'])
    {
        case "1":
            tem = Tjj.txttemplate;
            tem = tem.replace(/{title}/gi, ad['name']);
            tem = tem.replace(/{url}/gi, ad['url']);
            break;

        case "2":
            tem = Tjj.pictemplate;
            tem = tem.replace(/{width}/gi, ad['width']);
            tem = tem.replace(/{height}/gi, ad['height']);
            tem = tem.replace(/{link}/gi, ad.link);
            tem = tem.replace(/{url}/gi, ad.url);
            break;

        case "3":
            tem = Tjj.swftemplate;
            tem = tem.replace(/{width}/gi, ad['width']);
            tem = tem.replace(/{height}/gi, ad['height']);
            tem = tem.replace(/{link}/gi, ad['link']);
            tem = tem.replace(/{url}/gi, ad.url);
            
            break;

        case "4":
            tem = Tjj.htmltemplate;
            tem = tem.replace(/{code}/gi, ad['code']);
            break;
    }
    
    return tem;
}
</script>

</head>

<body>
<script>
var D_ID=32,mids=[50],width='300',height='20',ad={"50":{"type":"4","code":"<script type=\"text\/javascript\">\r\n\t(function(){\r\n\t\tvar arr = [\r\n\t\t\t{text: \"\u7f51\u76d8\u4e13\u7528\u6d4f\u89c8\u5668\u4e0b\u8f7d!\", link: \"http:\/\/ie.115.com\/setup\/115br_u_1.exe\" },\r\n\t\t\t{text: \"\u60a8\u77e5\u9053\u666e\u901a\u4f1a\u5458\u548cVIP\u8d35\u5bbe\u6709\u4ec0\u4e48\u533a\u522b\u5417?\", link: \"http:\/\/vip.115.com\/active\/?p=logintt\" }\r\n\t\t];\t\/\/\u94fe\u63a5\u5730\u5740\r\n\t\tvar config = {\r\n\t\t\tspeed: 5,\t\/\/\u6eda\u52a8\u7684\u901f\u5ea6\r\n\t\t\twait: 5000, \/\/\u6eda\u52a8\u540e\u5230\u4e0b\u4e00\u4e2a\u7b49\u5f85\u65f6\u957f\r\n\t\t\tbackground: \"#F8F8F8\",\t\/\/\u80cc\u5f71\u989c\u8272\r\n\t\t\tcolor: \"#F63\"\t\/\/\u94fe\u63a5\u9ed8\u8ba4\u5b57\u4f53\u989c\u8272[\u5168\u5c40]\r\n\t\t};\r\n\t\t\r\n\t\tvar html = [];\r\n\t\thtml.push('<style type=\"text\/css\">');\r\n\t\thtml.push('body{ background:'+config.background+'; margin:0; padding:0; font-size: 12px; color:#666;}');\r\n\t\thtml.push('ul{margin:0; padding:0; list-style:none;}');\r\n\t\thtml.push('a{color:'+config.color+'; text-decoration:none;}');\r\n\t\thtml.push('a:hover{ text-decoration:underline; color:#F63;}');\r\n\t\thtml.push('li{height:16px; line-height:16px; vertical-align:middle;}');\r\n\t\thtml.push('<\/style>');\r\n\t\t\r\n\t\thtml.push('<div style=\" position:absolute; height:16px; overflow:hidden;\">');\r\n\t\thtml.push('<ul style=\"position:relative; top:0;\" id=\"js_box\">');\r\n\t\t\r\n\t\tfor(var i = 0, len = arr.length; i < arr.length; i++){\r\n\t\t\tvar item = arr[i];\r\n\t\t\tvar color = \"\";\r\n\t\t\tif(item.color){\r\n\t\t\t\tcolor = 'style=\"color:'+item.color+'\"';\r\n\t\t\t}\r\n\t\t\thtml.push('<li><a href=\"'+item.link+'\" '+color+' target=\"_blank\">'+item.text+'<\/a><\/li>');\r\n\t\t}\r\n\t\t\r\n\t\thtml.push('<\/ul>');\r\n\t\thtml.push('<\/div>');\r\n\t\t\r\n\t\tvar BoxMove = (function(){\r\n\t\t\tvar _timer;\r\n\t\t\tvar _box;\r\n\t\t\tvar _childs;\r\n\t\t\tvar _len;\r\n\t\t\tvar _step = 16;\r\n\t\t\tvar _active = 0;\r\n\t\t\tvar _moveTimer;\r\n\t\t\tvar _ms, _me, _less, _dom;\r\n\t\t\t\r\n\t\t\tvar moveListen = function(){\r\n\t\t\t\t_moveTimer = window.setTimeout(function(){\r\n\t\t\t\t\tif(_moveTimer) window.clearTimeout(_moveTimer);\r\n\t\t\t\t\tif(_less){\r\n\t\t\t\t\t\t_ms--;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\t_ms++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t_dom.style.top = (-_ms) + \"px\";\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(_ms == _me) return;\r\n\t\t\t\t\tmoveListen();\r\n\t\t\t\t}, config.speed);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tvar move = function(dom, start, end){\r\n\t\t\t\tif(start > end){\r\n\t\t\t\t\t_less = true;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\t_less = false;\r\n\t\t\t\t}\r\n\t\t\t\t_me = end;\r\n\t\t\t\t_ms = start;\r\n\t\t\t\t_dom = dom;\r\n\t\t\t\tmoveListen()\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tvar listen = function(){\r\n\t\t\t\t_timer = window.setTimeout(function(){\r\n\t\t\t\t\tif(_timer) window.clearTimeout(_timer);\r\n\t\t\t\t\tvar oldTop = _active * _step;\r\n\t\t\t\t\t_active++;\r\n\t\t\t\t\tif(_active >= _len){\r\n\t\t\t\t\t\t_active = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tvar top = _active * _step;\r\n\t\t\t\t\tmove(_box, oldTop, top);\r\n\t\t\t\t\tlisten();\r\n\t\t\t\t}, config.wait);\r\n\t\t\t}\r\n\t\t\treturn {\r\n\t\t\t\tBind: function(){\r\n\t\t\t\t\t_box = document.getElementById(\"js_box\");\r\n\t\t\t\t\t_childs = _box.childNodes;\r\n\t\t\t\t\t_len = _childs.length;\r\n\t\t\t\t\tlisten();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t})()\r\n\t\t\r\n\t\twindow.onload = function(){\r\n\t\t\tBoxMove.Bind();\r\n\t\t}\r\n\t\t\r\n\t\tdocument.write(html.join(\"\"));\r\n\t})()\r\n<\/script>\r\n"}};
Tjj.write(D_ID,mids,width,height,ad);

var tjj_state_max = (function(){

    function TjjTagBind(){  

        var doc = doc || document.documentElement;
        var ev = ev || "click";
        var func = func || send;
        try {
            doc.attachEvent("on"+ev,func);
        } catch (e) {
            try {
                doc.addEventListener(ev,func,false);
            } catch (e) {
                doc["on"+ev] = func;
            }
        }
    }

    function send(){
    
        var t = new Date(),
        i = t.getTime(),
        img = document.createElement("img");
        
        img.style.display = "none";
        var lang=getlang();
        try{
            var f = parent.cur_url ? parent.cur_url : location.href;
        }catch(e){
            var f = location.href;
        }
        img.src = "http://v2.tjj.com/admclick.gif?mid=" + M_ID + "&did=" + D_ID + "&lg=" + lang +"&s="+screen.width+","+screen.height + "&tjjid="+ getTjjID() + "&f=" + encodeURIComponent(f) + "&_tt=" + new Date().getTime();
    //  img.onerror = (function(){});
        document.body.appendChild(img);     
    }
    
    var loadimg = function(imgurl){
        var img = new Image(1,1);
        if( !/^https?:\/\//.test(imgurl) ){
            imgurl = "http://v2.tjj.com/"+imgurl;
        }
        img.src = imgurl;
        img.onload = function(){
            
        }
    }
    
    function tjj_trim(str){
        return str.replace(/(^\s*)|(\s*$)/g, "") 
    }
    
    var cookieCtl = {
        set: function(name,value,exp){
                var exp = exp || 0;
                var et = new Date();
                if ( exp != 0 ) {
                    et.setTime(et.getTime() + exp*3600000);
                } else {
                    et.setHours(23); et.setMinutes(59); et.setSeconds(59); et.setMilliseconds(999);
                }
                var more = "";
                document.cookie = name + "=" + escape(value) + more + "; expires=" + et.toGMTString();
            },
        get: function(name){
                var res = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
                return (null != res ? unescape(res[2]) : null);
            },
        del: function(name){
                var value = this.get(name);
                if(null != value) { this.set(name,value,-9); }
            }
    }
    
    function getTjjID(){
        var tjjid = cookieCtl.get("tjj_id");
        if(null == tjjid){
            tjjid =  new Date().getTime().toString() + Math.floor(Math.random()*100000000).toString();
            cookieCtl.set("tjj_id", tjjid);
        }
        return tjjid;
    }
    
    function getUnIq(){
        var unique = cookieCtl.get("tjj_u");
        if(null == unique){
            unique = 0;
            cookieCtl.set("tjj_u", 1);
        }
        return unique;
    }
    
    var getlang = function(){
        var lang="-",nav = navigator,tv;
        var allkey= ["systemLanguage","browserLanguage","language","userLanguage"];
        for(var k in allkey){
            tv = nav[allkey[k]];
            if(tv) { lang = tv; break; }
        }
        return lang.toLowerCase();
    }

    TjjTagBind();
    try{
        var lang=getlang();
        if(M_ID && D_ID){
            loadimg("adm.gif?mid=" + M_ID + "&did=" + D_ID +"&p="+encodeURIComponent(window.location.href)+"&r=&repeat=&s=&uniq=" + getUnIq() + "&lg=" + lang +"&s="+screen.width+","+screen.height + "&tjjid="+ getTjjID() +"&tzone=&tcolor=&_t=" + new Date().getTime().toString());
        }
    }catch(e){}

})();

</script>

</body>
</html>